<?php
$conn = @mysql_connect("localhost", "root", "") or die("数据库连接错误");
mysql_select_db("test", $conn);
mysql_query("set names 'UTF8'");
?>